import instance from "@/tools/axios";

// 添加线下客户
const addOfflineCustomers = async (data: any): Promise<ResponseApiDto> => {
    return instance.post("/SysOfflineCustomers/Add", data);
};
// 删除线下客户
const deleteOfflineCustomers = async (data: any): Promise<ResponseApiDto> => {
    return instance.post("/SysOfflineCustomers/Delete", data);
};
// 修改线下客户
const updateOfflineCustomers = async (data: any): Promise<ResponseApiDto> => {
    return instance.post("/SysOfflineCustomers/Update", data);
};
// 分页线下客户
const paginationOfflineCustomers = async (params: any): Promise<ResponseApiDto> => {
    return instance.get("/SysOfflineCustomers/Pagination", params);
};
// 我负责的线下客户
const getOfflineCustomers = async (params: any): Promise<ResponseApiDto> => {
    return instance.get("/SysOfflineCustomers/GetOfflineCustomers", params);
};
// 查询线下客户的编号
const getOfflineCustomersid = async (params: any): Promise<ResponseApiDto> => {
    return instance.get("/SysOfflineCustomers/GetOfflineCustomersid", params);
};
// 添加线下客户
const switchOnlineCustomers = async (data: any): Promise<ResponseApiDto> => {
    return instance.post("/SysOfflineCustomers/SwitchOnlineCustomers", data);
};
export {
    addOfflineCustomers,
    paginationOfflineCustomers,
    deleteOfflineCustomers,
    updateOfflineCustomers,
    getOfflineCustomers,
    getOfflineCustomersid,
    switchOnlineCustomers
};